Sunday schools were first set up in the 1780s to provide education to working children on their one day off from the factory. Robert Raikes contributed to their development. Raikes was the editor of "The Glouchestor Journal", and he wanted to stop children from becoming bad. In 1805, Stockport Sunday School made a school for 5000 students. In the late 19th century this was the largest in the world. 