Adds the complete.R code required for Part 2 of the Prog. Assignment 1.