usable and purpose code snippets