added total offset row and column to data and create instance variable.