change printRow into printTable

Since this method prints 3 columns and 50 rows instead of just print rows.