Sample code wrong

fixed wrong sample code