Adding code to calculate implied volatility