Added comments to the code blocks