Figured out solution to doggies.py