collection of different code snippets