Factories and the Rise of the Working Class