added snippets for scala