added an autoloader and namespaced a class