first pass at print-tree function