initializing field numRows, in order to avoid vector subscript out of range error