ex7 coded.  results make no sense