Completed gui.py