Programming Assignment 3 for R Programming on Coursera