Which statement best describes how the Transcontinental Railroad helped lead to the closing of the western frontier?

A. Trains provided settlers with access to rich agricultural lands that were previously inaccessible by wagon.
B. Cities along the railroad expanded and became population centers.
C. Talented immigrants worked on the railroad's construction, increasing the population of the places it passed through.
D. Railroad companies were headquartered in western cities, drawing workers westward.