Finished a3.py