comments about the code for problem 1