refactor table.rb - step 13