could you please give an example of a logic for this?