added definition for class.pm