R Programming Course, Programming Assignment 2