sample code added