code: def value(self):
          
          r = {}
          attributes = [attr for attr in dir(self)
                        if not attr.startswith('__') and \
                        not attr.startswith('_')]
          for a in attributes:
              if a != "value":
                  val = getattr(self, a)
                  if val is not None:
                      r[a] = val
          return r
docs: returns the class as a dictionary