adding printRows method
Expand printRows to handle wide rows