core
core copied to clipboard
Refactor Scheduler
Split the code and add tests