added tree structer for code base