Functions of Noun:
1) as Subject
Terry is inquiring on the status of her passport application.
2) As Vocative/Direct Address
That was a good question, Terry.
3) As Direct Object
Mom and Dad loves Terry.
4.) As Indirect Object
Her sister bought Terry a birthday present.
(Terry is the indirect object, present is the direct object)
5.) As Objective Complement
The class elected Terry president.
6.) As Subject Complement
Terry is the class president.
7) As Object of Preposition
I borrowed a Harry Potter book from Terry.
8). As Appositive
Their beautiful daughter, Terry, won the dance competition.