Code idea of building net