Update marker_val.cpp

Final Version working