programming assignment from week 2, r programming module, data science coursera