before that period the city was a small highly compact cluster in which people moved about on foot and goods were conveyed by horse and cart. but theearly factories built in the 1830's and 1840's were located along waterways and near railheads at the edges of cities, and housing was needed for the thousands of people drawn by the prospect of employment..