Add some snippets for scala