hw3 prob 7