how do tables work?