Updated a sample code snippet.