compined definitions of Tree and tree into one type definiton