Update the example code to use the Futures style.