finish runtim/ex2.cpp