Update designPattern.cpp