Sentence: John was doing research in the library when he heard a man humming and  whistling. He was very annoying.
 Reason: The 'He' refers to the man because the 'he' is a male human; the word 'He' is used by the people of. 
 Question: Is the above reasoning correct or wrong? 