// Available variables:
  // - Machine
  // - interpret
  // - assign
  // - send
  // - sendParent
  // - spawn
  // - raise
  // - actions
  // - XState (all XState exports)
  
  const fetchMachine = Machine({
    id: 'fetch',
    initial: 'noop',
    context: {
      retries: 0
    },
    states: {
      noop: {
        on: { BUSY: 'busy' }
      },
      busy: {
        initial: 'foo',
        on: {
            RUN: {
              actions: () => alert('busy')
            }
          },
        states: {
          
          foo: {
            on: {
            RUN: {
              actions: () => alert('foo')
            }
          },
          },
          bar: {}
        }
      }
    }
  });