Model a traffic light with XState.
import { createMachine } from 'xstate'; // Create a traffic light machine