printPatient method was added to the class