refactor table.rb - step 12