Better working version of ccc, al tests passes
More compact tests