added the ConfigFactory class