Each territory or county could be further divided into and . The basic territorial division was the "villa", centered on a church, and composed of one or more hamlets or villages, together with all its facilities, lands, and possessions. The "villas" perpetuated ancient Roman and Suevic foundations, and they were the base for the ecclesiastical organization, and for the economic production of the country, later evolving into the modern "parroquias" and "freguesias" (rural parishes). The local economy was subsistence, based mainly on the production of grain and beans, and notably in cattle breeding. Other valuable—though geographically restricted—products included fruits, salt, wine, honey, olive oil, horses, iron for the production of weapons and tools, and exotic oriental fabrics introduced from "Spania". There were also specialized artisans who worked on demand, such as masons and goldsmiths.