For Programming Assignment 3 for Coursera's R Programming Class