Added autoload class function