the script ex_6_8.m seems to work now