finished chapter 6 exercises

Signed-off-by: Chris Jones <chris@jonezy.org>