adding the sample code