superclass for representing nodes in a tree
