Inside the classroom, a teacher in a white jacket was experimenting with a fire alarm, and the students cheered.