add getLine method