Exercise 6
Exercise 7
Exercise 8 (minus the typo part