Solution to Reproducible Research peer assignment 1