add example with async