added lab3.py: