new methods added getAllRows and getRowCount