Assignment 1 prob 7