for the submission of coursera-r-programming course assignment 2