exercise-two: pinging and ponging