Professor fails entire class after students' alleged bad behavior