1. added cv code (vs2012)