upgrade "pong" sample