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 It refers to the man who was whistling - not John. 
 Question: Is the above reasoning correct or wrong? 