What attracted people to cities in the 1800s?