A few miles west are the pyramids of Teotihuacan , where corn may first have been domesticated 4,000 years ago .