Period 2 codes