adding scala snippets