add method to classes