Added Tree tool and modified classes according to instructions of
Example.java.