Sample code examples showing some Scala features