the sample code