creating unified Table class for table display, hope it's worth it