Updated with example case (line 3)