Programming Assignment 2 for Coursera R class. Pree assessment