The gradient syntax used in these examples is up to date, and different from the book.