Analysing behavior in the classroom