Added copula code