adding new method 'createSchedule' to allow dynamic creation of schedules.