final version of program for Assignment03