Final solution

Attempt to solve the Programming Assignment 2 from Coursera’s R
Programming course.