Removed the variable 'a' to stop an error. Added add_one_CD function.