Physics class, students are using electromagnets