Update code snippet