The development of grain agriculture allowed excess food to be produced and stored easily which could have led to the creation of the first permanent settlements and the division of society into classes.