added ProcessorFactory class extending AbstractFactory to generate concrete objects