scripts from the R class on Coursera