working on Ping class