some cool code snippets