Finalized net.cpp