Fix 'Define your Stateful Object' example in README.md