Added tree class

added a class called tree which references a tree object