added getLineNumber to return the current line