Added some code for creating the ring