Updated pong example to work with new API.