Update class and function snippets