My revised version of R Programming Coursera course - Programming Assignment 2