finish the framework of network