new sample code