added new sample code