Solution to problem 43