Separated ca simulator class into 'res'.