Added more code to the Network.java class.