class EventEmitter, listener to receive events, and emit() to fire events