write Table.indexOf method