ring.hpp added, tested.