sample code 2 added