typo on the code that made the example unworkable