modify the print function so it prints well.  (Tree confirmed to be the same as the example output)