Fixed a bug on class.php that wouldn't save changes to students in the class