Added sample usage for event emitter