working on event emitter
working eventEmitter