make scheduleCycle class-based