NodeTree and Tree classes.