Codes for producing algebra boxes