class for simple itaration throwgh file lines