Fixing program 4.