ProgAssignment no 3 for R Language course on Coursera.org April-May 2014