create new constructor for student to be called from update page