Assignment for Coursera R class