Problem 10.2 completed