British students got the shock of a lifetime when they walked into their classroom and found their teacher's bloody body on the floor, The Daily Mail reported.

The parents of the students — some as young as 5-years-old — were furious that it was all part of a problem-solving exercise.

The scene was set up to look like the teacher had been attacked, with fake blood splattered across the floor and police tape blocking off the "crime scene," The Daily Mail reported.

The school's principal told The Daily Mail that the scene was staged to cover key skills in the curriculum, from creative writing to science.

Investigators then appeared to ask the students to figure out who committed the crime and reportedly took the fingerprints of some children, the paper reported.

Click here for more from The Daily Mail.