Solver attemp 1