removed unnecessary Tree class