Construct the solution