The infinitive phrase functions as the direct object of the verb intended. I have a paper to write before class. The infinitive phrase functions as an adjective modifying paper. Phil agreed to give me a ride