Renamed 'MyEvent' to 'ButtonChangedEvent', added 'getState()', 'setState()'.