the creation of laws which are to be applied to a society or grouping