formatting
adding central difference function