Added actionfactory.cpp