Code assignments for the Coursera scala class