implement functions, factor out test cases - still not too specific..
Merge branch 'master' of github.com:felixmulder/ccol