Sample codes on EventEmitter object with events being emitting.