R-Programming Course Assignment 2