Update network: function extract_net()