Submission of .R file for Programming Assignment 2.