initial implementation of generateSchedule