added sample code