Exercise 8: Printing with a formatter