Update thirdexample.cpp