updating the programming for the correct test5.dat file