a simple networking class