I understand the logic, but how can I do it?