function class D: