add comments to state example