Read the sentence.

The National Aeronautics and Space Administration (NASA) gave the astronauts a course correction.

How does the word astronauts function in this sentence?

A.
predicate

B.
indirect object

C.
object of a preposition

D.
direct object

D. direct object