add example with Futures