modifying the file example.cpp