Homework 7 solutions