closes #6, #7 define ping pong