code: def add_inputs(self, xs):
          
          states = []
          cur = self
          for x in xs:
              cur = cur.add_input(x)
              states.append(cur)
          return states
docs: returns the list of states obtained by adding the given inputs
          to the current state, one by one.