3 stages of pain