adding first version of icmp.c