name the part of speech of the word “favor” in the following sentence: could you do me a favor and lock the door when you leave?

a:indirect object
b:direct object
c:subject
d:preposition