Refactor solve()