Complete Prog Assig 2