Update new.cpp

merged file with updated file.