makes network private and creates setter for network testing