A food surplus became available as irrigation,farming, and domestication of animals and plants developed. These changes enabled increasing numbers of people to live in the same location. A ruling class emerged to control the products that were accumulated and the people living in the community. Because not everyone was needed to produce food, some people specialized as accountants or religious leaders-the first members of a service sector. As a result, cities developed as economic centers of services, manufacturing, and trade.