define EventDispatcher class