Programming assignment 2 for peer assessment.