Code from the scala coursera course