the R homework for the Coursera of Data Science