Submission for R Assignment 2

This file contains the functions needed to complete Assignment 2. Use
this file for peer review.