Commit with completed R code for the assignment