Updated network class to create a new network.