First working implementation of the task scheduler
Test case for the task scheduler