new sample code added