chore(chapter2): added chapter 3 code

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