Added Deriv() and test