Re-implementing Manual Solver