implement CV and CA model