Updating cpp file