start writing logic to display tree