Correct sample code