programming Assignment for Coursera R programming course