Defined a recursive tree.