during this time, many people moved to the united states from other countries, such as ireland, italy, germany, eastern europe, and china. many of them worked in large factories and lived in big cities, such as new york city, chicago, and boston, often in small, poor, close-together apartments called "tenements" or "slums". they often were used by "political machines", who gave them jobs and money in exchange for votes.