Update commandFactory.cpp