Ping program design