Problem 17 complete