Phrase: John was doing research in the library when he heard a man humming and whistling. He was very annoyed.

Question: What does "He" in "He was very annoyed." refer to in the phrase?
Option A: John; Option B: The man
Answer: a