Finished first draft of solution.