In response to the repeated behavior of cheating, a class of a college promised that as long as all students in the class sign the undertaking, then if one person in the class cheats, the test results of the whole class are counted as failing  The school accepted and implemented the promise of the class
As a result, there were still some cheating in the class, but the class leader's test results were excellent
Most people in the class did not cheat.