Exercise 7-4 with compile error.