ROOTR: improved Functor example to explain how to export a class