First problem solution.

Here is a detailed description of the problem and solution.