updated removed static and added spl_autoload