Starting the solve method