The context of the following conversation is Bailey wouldn't stop talking to their friend in class. Bailey prevented the class from going.:
Bailey says My class couldn't go on our trip the other day..
The friend responds Why? What happened?.
Bailey responds I was talking to my friend and the teacher got angry..
The friend responds They must have been pretty angry to stop the entire class from going on the trip..
Bailey responds Yeah, she was extremely mad..
The friend responds Well, I guess that will teach you not to talk to people during class in the future!.