add method to class