An event emitter class