added  a simple schedular to keep track of tasks and their deadlines