create a calendar class in which you can add appointments(custom struct) onto. In the calendar class you have to add 2 functions, One to add an appointment to the calander, the appoinment has startTime and endTime in which new appointments cannot overlap, second function is to retrieve all appointments with specified start and end time.