Prob 3 Solution