exercise 7.1 without a bug