creating new read_lines function
changing loop in read_lines function