update main.py to be complete