add debug in pretty-print, begin chapter8