- State class
- Save state function