added Dispatcher class and a dispatcher package

added Dispatcher class and a dispatcher package