Which sentence has an infinitive or infinitive phrase that functions as a direct object?

To see their work, visit the campgrounds in Death Valley.

Because of the Great Depression, these men needed to work.

Their first task was to build barracks and other permanent structures.

In 1933, legislation was passed to establish the Civilian Conservation Corps.