variants_tbl function

Creates a variants table.