First cut of solution.