Read the text and answer the question.
"A true friend is someone who stands by you during difficult times. When I failed my math exam last month, my friend David didn't criticize me. Instead, he offered to help me study for the retake. Thanks to his support, I passed the exam with a good grade."
What quality of David's makes him a good friend according to the text?