move the name to 10compare.cpp and use a new method to implement