grey code: tricky