add classes for the centered difference in 2D