Solution to problem 19