TMVA custom classifier

Ciao,

looking in the TMVA example I think I understood how to load and use my own custom classifier in the Factory and, I think, in the Reader.

The problem is that I completely don’t know how to write it! I mean: it has to inherits from which class? it must have which methods? there’s a class/file that I can take as template?

Thanks a lot,
Matteo

Suggestions?