To understand the event "The teacher gave the class homework.  All the students groaned.", it is important to know that A group of students taught by a teacher is called a "class."