How is the infinitive phrase used in this sentence?

These old journals are wonderful to learn what life was like a century ago.

A.adverb
B.noun as direct object
C.noun as subject
D.adjective