Update ex11.cpp