adding command Factory