added number of students variable