Adding class method and xctool