This article talks about why teachers use group punishment with a little at the end of how effective classroom management can be used instead of punishing the whole class. In my experience, the whole class is punished when the teacher does not know what else to do. Thinking about what can be done to prevent the need to punish the entire class is important in my opinion.