Assignment for R programming on Coursera