added a getLineNumber method