functions of law in society