Simple example of Trees in Java