Completed the first problem

The last part of the solution was added.