finished FirstOrder.py