Adding comments to make the code clear