Homework 6: Exercise 7