Construct the model for programming the color code.