ch 6 exercises completed (except 6.13 which looked tedious..)