add generate_state() to Table class, though I have yet to test it