Implemented the CC class, fixes 16, fixes #20, fixes#12, might fix #14