Madurai is built around the Meenakshi Amman Temple, which acted as the geographic and ritual center of the ancient city of Madurai.[37] The city is divided into a number of concentric quadrangular streets around the temple.[37] Vishwanatha Nayak (1159–64 CE), the first Madurai Nayak king, redesigned the city in accordance with the principles laid out by Shilpa Shastras (Sanskrit: śilpa śāstra, also anglicised as silpa sastra meaning rules of architecture) related to urban planning. These squares retain their traditional names of Aadi, Chittirai, Avani-moola and Masi streets, corresponding to the Tamil month names and also to the festivals associated.[37] The temple prakarams (outer precincts of a temple) and streets accommodate an elobrate festival calendar in which dramatic processions circumambulate the shrines at varying distances from the centre. The temple chariots used in processions are progressively larger in size based on the size of the concentric streets.[38] Ancient Tamil classics record the temple as the center of the city and the surrounding streets appearing liken a lotus and its petals.[9] The city's axes were aligned with the four quarters of the compass, and the four gateways of the temple provided access to it.[39] The wealthy and higher echelons of the society were placed in streets close to the temple, while the poorest were placed in the fringe streets.[39] With the advent of British rule during the 19th century, Madurai became the headquarters of a large colonial political complex and an industrial town; with urbanisation, the social hierarchical classes became unified.[39]