completed squid proxy simulation code