finish main3_21.cpp