Refactoring PingPong