add some code snippets