Attached solution.