Was the idea of rags to riches a cause or a result of industrialization?