Finish the program assignment3