working on creating a tree class