add comments to sample code