Can you please add what is the intended functionality of this class? Also, `XYZFactory` is supposed to create instances of `XYZ`. That does not seem to be the case here. A little non-intuitive.