created class for row and column. Changed create for to retrieve the rows and columns from the datasource