A construction of rings whose injective hulls allow a ring structure