Improve code snippets