problem 2 with comments complete.