how was the middle class affected by the industrial revolution