code: def mean(self):
          
          # XXX rename this method
          if len(self.values) > 0:
              return sorted(self.values)[len(self.values) / 2]
          else:
              return None
docs: return the median value