added solution to display_parse_tree problem