modify Ping.java