snippets of reusable code