added interface for networking classes and created classes for message representation