This code is part of the lateral inhibition tutorial (coming soon).