import java.util.*;

/**
 * Absolutely minimal implementation of a tree data type, suitable only
 * for creating an example tree. All data is unprotected.
 */
public class Tree {
	String value;
	Vector children;
	
	/** Constructor to create a node containing the given value. */
	Tree(String value) {
	    this.value = value;
	    children = new Vector();
	}
	
	/** Add a node containing the given value as a child of this node. */
	Tree add(String value) {
	    return add(new Tree(value));
	}
	
	/** Adds the given tree as a child of this node. */
	Tree add(Tree tree) {
	    children.add(tree);
	    return tree;
	}
}
