Added interface and some implementation code of the Scheduler.