added instance variable to fix student add problem
Merge pull request #231 from rwarbelow/fix_add_student

added instance variable to fix student add problem