Updated to complete Assignment 2

This commit was made to complete Assignment 2 for R Programming.