Playing around with Scala (using Coursera)