progfun - Exercise coursera scala