binary code pattern