HW2, problem 1a (only).