Problem students may find themselves serving detention in the teacher’s lounge.