How to use code snippets