Update CCD.scala

replace incorrectly placed extends keyword with trait for Error