Codes for Phase Transitions by Ricard Sole