If you define the problem cor...
If you define the problem correctly, you almost have the solution.