update tutorial with callback syntax