refactor table.rb - step 9