Refractor codes