method1 added to ClassA.