Solution to problem 187