Added function to get students by class