Fixed problem in student_state() wrt named tuples