R Programming class - Programming Assignment 2