implement ClassMethods module