MyClass inherits from EventEmitter, add listeners and emit events