added example of using a table