ruby tools to play around with trees