Here's why:
* Subject: The subject of a sentence is the person, place, or thing that performs the action of the verb. In this case, the verb is "laughed".
* Complete Subject: The complete subject includes the subject itself and any words that modify or describe the subject. "The whole class" is the subject, and it's not modified by any other words.