Debug code for Exercise 2