Coursera Scala Homework 1