With the creation of James Watt's steam engine, where did factories need to be located?

A. by rivers for the water power
B. anywhere there was space for a factory
C. in rural areas so factories could get more workers to operate them
D. near coal mines to easily access the coal needed to help run them

D. near coal mines to easily access the coal needed to help run them