Submission for R programming assignment 2 - 26 Jul 2014