Added pretty printing to Exercise 1.2