An example on using blocks for async callbacks.