refactor table.rb - step 14