add func3 function to class C