Add comments to explain each operation