Lab2 Exercise 4 Fix some bug about prettyPrinter