Coursera scala assignments 3.