partial implementation of z2 ring