small fixes
finished chapter 8 exercises