Assignment 2 from R-Programming Coursera