added Networkclass for server client connection