Completed Assignment 2 of the Coursera R Programming course.