add cursorLineNum() method