add basics of tree object