Solution
All operations are bitwise. To extract, read the shaded cells in reading order (left to right, top to bottom).