chore(chapter8): update code examples

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