GENERATE SCHEDULE