code: def add_element(self, elt):
          
          if not isinstance(elt, Element):
              raise TypeError("argument should be a subclass of Element")
          self.elements[elt.get_name()] = elt
          return elt
docs: Helper to add a element to the current section. The Element name
          will be used as an identifier.