worker thread class added,going for the dispatcher class