changed references to pointers in Student model c++ class