Use new autoload functionality

The __autoload() function won't be supported in future versions of PHP. See: http://php.net/manual/en/language.oop5.autoload.php