To understand the event "The teacher gave the class homework.  All the students groaned.", it is important to know that The teacher can give you a good grade because of your homework