adding autoloading and Exception Class