Can you think of a logic that does not use "flag".