Programming Assignment 2 - solved