This is the version submitted for the Programming Assignment 2 of the
october R programming course