samplecode