Introducing a private printRows(...) method for easier analysis