Sentence: John was doing research in the library when he heard a man humming and  whistling. He was very annoyed.
 Reason: The 'He' refers to john because he was the one who had written the song, and 'He' is a common name for the. 
 Question: Is the above reasoning correct or wrong? 