start to new funciton
Merge pull request #10 from AndrewMagliozzi/master

starting the tree function