Finished HW2_Prob3... finally...