converted lab1-16.py to spaces