chore(chapter5): added code examples

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