Managing pupil control in the classroom