add methods to access line and lineNumber