What is the part of speech of the underlined word in the sentence?

The dog wagged its tail, so Jeff took it for a walk.

A.
pronoun

B.
preposition

C.
conjunction

D.
verb