Flipped codes