Add new student controller function