Modifying the Factory class to use reflections