Describe some of the harsh living and working conditions the working class endured in cities? how did industrial workers cope with these conditions