lab 12.py as of 11/30