structured the solution