added sample code
added sample code