added clearer comments in problem7, format problem10