updates to p013.py