Coursera R Assignment