Coursera R Course Assignment 2

Required changes for assignment 2