made Entity class Tree