First try on updating coefficients for 2D