updated table examples with for loop