Beginning to implement checksum in ip loop