Submission for Coursera R Programming Programming Assignment 2