Made plotVolSurface into a function