Implement the Ping and Pong threads