Committing the solution to Problem 23.