<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _saveState(self, path):

 """save current state and add a new state"""

        self.addSession()  # next session
        self._save(str(self.n_sessions), path)