ex 6_4 no end of trouble, problem with compare function...