Update contour lines code (switch to constants)