How is the underlined pronoun used in the sentence?

Joe's mother hugged him tightly before the big race.
A.subject B.subject complement C.object of a preposition D.direct object