code for the coursera course