Update command_pattern.cpp