Class work for Coursera class in R Programming