Defined necessary class for gen_schedule