start working on Tree class