adding ring.h