correct purchase.py