create a new QuantityFactory