Private method added to ClassA.