Homework 7: Exercise 8 and Exercise 10