began writing growTree function