based on Complexity Explorable: " I sing well-tempered - A simple model for critical behavior in a system of spins"