Create commandfactory.cpp