Programming Assignment 2 validated and updated