var elevator = elevators[0]; // Let's use the first elevator. 4. 5. . [HOST]. // Whenever the elevator is idle (has no more queued destinations) 6.