Added implementations of functions of class CD.