Programming Assignment 2 in the R Programming online course from Coursera.