first lot of code snippets