preliminary work on building 3 tables