Start of solution for Problem 16