Updated code snippet sample