Wrote a base for the network communication