What was a benefit of the railroad?

A: it encouraged people to move to other countries

B: it eliminated thousands of job

C: it decreased agricultural production

D: it offered cheap transportation for materials and goods