explain event emitter usage.