Add methods to classes