Completed the getAppointments methods. The two first methods call the
third method with specified parameters.