finished body of chapter 4, started on exercises