Solution to Programming Assignment 2

Final version