Programming Assignment 2 in R Programming course from Johns Hopkins/Coursera, November, 2014