Ecology in ancient civilizations