Lastly, it is always a good idea to refactor one's code after having ensured that the code works correctly.