Programming Assignment 2 (R Programing)