add methods to class