New version of cmp ex1