CODE USING VECTORS (dnaModel)