 Welfare dwindled in Stockholm, and more so among the wealthy, which caused social classes to approach each other.In 1723 a devastating fire destroyed large parts of the parish of the Catherine Church, an event which resulted in the city's first building code in 1725.Produced by City Architect G J Adelcrantz (1668–1739), the assistant of Nicodemus Tessin the Younger, it attempted to improve fire safety by prohibiting wooden buildings in the old town, and ameliorate the city's appearance by implementing the rectangular 17th century city plan.