Which cultural practice emerged as a result of the Mesopotamians adapting to their environment?