Implemented Single threaded Dispatcher,wrote test cases