Added comments to sample code
Added a small code snippet