updated Emitter example returning this