I finished implementing the derivatives.