Modifications to Interpolation - Implemented the derivative