clean up and added a checker for the solution.