refactor table.rb - step 10