ringwith cubics