finished table.py