Update ring.py