Week 3 of Coursera scala Course