Sentence 1: Tom wanted to quit drinking. 
 Sentence 3: Tom knew he couldn't hang out with them anymore 
 Sentence 4:  He slowly stopped going out with them 
 Sentence 5:  It greatly helped him stop 
 Given Sentence 2: But his parents told him it was too dangerous.