added readlines method