Example with race condition