Scala solutions for Coursera course