Coursera scala class work