code: def add_child(self, node):
          
          assert isinstance(node, Node), "Child node must be a subclass of Node"
          node.parent = self
          self.children += [node]
docs: add_child: Adds child node to node
              Args: node to add as child
              Returns: None