test some snippets of code