code: def reap(self):
          '''
          Collects attributes named in reap_vars from each AgentType in the market,
          storing them in respectively named attributes of self.
  
          Parameters
          ----------
          none
  
          Returns
          -------
          none
          '''
          for var_name in self.reap_vars:
              harvest = []
              for this_type in self.agents:
                  harvest.append(getattr(this_type,var_name))
              setattr(self,var_name,harvestf reap(self):
          '''
          Collects attributes named in reap_vars from each AgentType in the market,
          storing them in respectively named attributes of self.
  
          Parameters
          ----------
          none
  
          Returns
          -------
          none
          '''
          for var_name in self.reap_vars:
              harvest = []
              for this_type in self.agents:
                  harvest.append(getattr(this_type,var_name))
              setattr(self,var_name,harvest)
docs: Collects attributes named in reap_vars from each AgentType in the market,
          storing them in respectively named attributes of self.
  
          Parameters
          ----------
          none
  
          Returns
          -------
          none