add exercise from coursera scala course