TODUN: added the scheduling algorithm to project