chore(chapter6): update chapter 6 code

Signed-off-by: Josh Kurz <jkurz25@gmail.com>