Typo in my solution to exercise 3 chapter 6