Added the autoloader and the factory class.