Updating code snippet