Solution to problem 15 - incomplete and incorrect