makes network private and creates setter for network testing
worked with rbkillea