adding the solution portion