implemented get tree (nested nodes) structure for a project