add method to class2

add method to class2