refactor table.rb - step 11