The most important thing is that it works. You can find multiple ways to do that but if all solutions converge to the same result, that's the most important.