added different sample code