Added Tree class.