updated cpp file
updated cpp file