Code used in Reproducable Research project 2