hw3 prob 8