More thorough commenting for Ch. 1, problem 2