R Programming, July 2014 - Assignment 2