Added a public method to ClassA.