Adding tree object