Replaced __PACKAGE__ by $class