R-Programming assignment from Coursera