Network programming: Calculating the checksum program