Construct the model for programming the colored code.