Another example. This one shows how to use callbacks and C++ classes at the same
time.