Contains R code of Coursera assignment