Update code snippets