hw3 prob 4