Sentence 1: John was feeling lonely after he came home from work. 
 Sentence 3: John realized he wanted a dog 
 Sentence 4:  John bought a dog in his nearby pet shelter 
 Sentence 5:  John became more happier when he went home from work 
 Given Sentence 2: John realized he wanted a companion.