Update class_extend2.cpp