Dave's 2nd programming assignment for Coursera's R Programming class