EventEmitter bases pattern