Easy event emitter implementation