Added Tree class