added ring.py