Submission for Programming Assignment 2, R Course, Coursera