Added second example with callback