Coursework for Coursera Scala Class