adding code snippets