exercise 4.40 with bugs