Finished ttt4.py