changing main.java - printing out the table.