code: def current_state(self):
          
          state = {}
          for s in self._state:
              state[s] = getattr(self, s)
          return state
docs: Return a dictionary with the current value of the variables defining
          the state of the step method.