Pointer to funtion with C++ Class added