Second Try of Prog Assign 2