Added function class with numeric derivative.
Changed variable's name.
Removed const restriction.