Exercise 3.5.4 - fixed an error