 The early 18th century saw Bath acquire its first purpose-built theatre, the Theatre Royal, along with the Grand Pump Room attached to the Roman Baths and assembly rooms.Master of Ceremonies Beau Nash, who presided over the city's social life from 1705 until his death in 1761, drew up a code of behaviour for public entertainments.The population of the city had reached 40,020 by the time of the 1801 census, making it one of the largest cities in Britain, which was expanding up the surrounding hills.