Code Snippets of Scala