Added method to draw tree structure.