With the passage from nomadic life to the settled life of farming, groups increased in population, divisions in labor were introduced, different classes evolved with rights, duties, and experiments in social and moral matters. In order to survive, a community must be able to codify its laws of behavior. Because behavior may change from time to time, it is necessary that these laws be flexible. To formulate laws, certain people are chosen and various forms of government are established.