implementing structs inside ring_z2_slow