Week 2 Assignment for Coursera R Programming Class