Solution to Programming Assignment 2 (19.09.14)