Submission for rprog-005 Programming Assignment 2