chapter 9 exercise 9-7: make read_hw as private member function of Student_info class