Lami - help me with the logic