modified ex15.py again with several write operations