Removed commented code
Created TreeTrait