Added class to do finite difference calculation.