Add full code example for backoff