They developed a mathematical system, built huge edifices, and devised a calendar that accurately predicted eclipses and solstices and that priest - astronomers used to direct the planting harvesting and of crops.