hw3 prob 3