trying to establish an add_node class for the tree