In the sentence "Mr. Malone, the gym teacher, walked into the office." What is the function of "the gym teacher"?
direct object
predicate adjective
predicate nominative
appositive