Checking the solution and giving feedback