add event emitter example