The purpose of the Homestead Act of 1862, which provided free federal land, was to
A. set up reservations for Native American Indians
B. encourage settlement of the West
C. establish land-grant agricultural colleges
D. assist in the construction of transcontinental railroads