added scala snippets