Add example usage of callback

Turns out you can use signals as callbacks, though it's marginally less
comfortable than I'd like. Still, I don't really see a way of making this
better.