Fix programming mistake in Chapter 9

Issue #124