started work on exercise 3, converting patientlist into a generic