Solutions to Prob2 and Prob3