Final submission of Programming Assignment 2 for rprog-005