add comments to the code + example