Network Programming homework 1