Forked file modified to include code implementing a solution to Assignment 2 for the Coursera course R Programming.