Make iter_lines() a method.