Add class Ring.