What is the function of the word "medal" in this sentence

"This morning, Margaret was given a religious medal, an image of the Sacred Heart."

a. indirect object
b. direct object
c. subjective complement
d. appositive