testing code snippets