Programming assignment 2 for the Exploratory Data Analysis course in Coursera