added basic Dispatcher implementation and tests