For the coursera class on scala and functional programming