Network Classes added for general code

Network classes, These are the general classes for connection.