@Dr Herbie: I reuse the public methods from the existing system a lot. Well, it is the only way because I have no idea how to do those magic calculations. I copy and paste a lot from other methods to make a similar method calls. I don't make my own class, I don't include my own library, and I don't include 3rd party library. The chances are, there is already something in the existing system that I should use.