minor fix for Exercise 2-6