random arriving and unloading times, state machine