Update homework 2.py