optimized for 3 equations

Try adding a fourth using these as starting points