R-Programming - Assignment 1 - part 2