Update tables.py

This is the first task of the summer homework