snippets of code written