Completion of Program 4