Add method to verify rows and columns