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.