R code and other files for the coursera course