Difference Between Pain and Suffering

There is a Buddhist teaching that says that when you get hurt, say, by an arrow, that is pain. The arrow hitting your arm, it hurts. Pain. However, there is a second arrow, which is your reaction to the arrow, the getting angry, the planning revenge, that is beyond pain, that is suffering.