The Maya social structure consisted of hereditary rulers at the top who had absolute power over the cities. Below them were hereditary nobles called Batabs who enforced laws, taxes, and policies. Priests usually came from the astronomer, astrologer, and mathematician classes. Merchants and traders acted as spies and carried information between cities. The majority of Mayas were peasant farmers who grew corn, beans, and squash to pay taxes and help build temples.