Change example to iterate over multiple networks