Problem 42 complete