Which of the following contributed to the rapid growth of cities between 1820 and the 1860s?

A. The demand for foreign products

B. The inequities between the rich and the poor

C. The rise of unions

D. The rise of factories