Re-factor code to allow sigma and sigma_prime to be passed to the Network constructor.