define EventDispatcher class
build