Coursera R Class Assignment 2