programming assignment 2 of "Reproducible Research" course (Coursera)