Finished tree.rb, fully working